package com.zhn.usermanager.controller;

import com.zhn.usermanager.downloadfile.MyExcelDownLoad;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * excel文档的下载
 * @author 16053
 */
public class ExcelDownloadController {
    @Resource
    private MyExcelDownLoad myExcelDownLoad;

    @GetMapping("/excel")
    public void excelDownload(HttpServletResponse response) throws IOException {
        myExcelDownLoad.excelDownLoad(response);
    }
}
